import { HttpConfig } from "@Tea/utils"

export type ToPotional<T extends object> = {
  [K in keyof T]?: T[K]
}

export type InitHttpType<P, R> = (agrs: P) => Promise<R>
